﻿using AspDotNet.Framework.Mvc.FirstDemo.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace AspDotNet.Framework.Mvc.FirstDemo.Controllers
{
    public class ViewBagController : BaseController
    {
        // GET: ViewBag
        public ActionResult Index1()
        {
            return View(Student.Students);
        }
        public ActionResult Index2()
        {
            ViewBag.Students=Student.Students;
            return View();
        }
        public ActionResult Index3()
        {
            ViewBag.Students=Student.Students;
            return View(Student.Students);
        }
    }
}